package document;

import static org.junit.Assert.*;

import java.io.File;

import org.junit.Test;

public class TestingDocument {

	@Test
	public void testBacaFile() {
		File testFile = new File("C:/Users/channisa/workspace/tugas-akhir-113100025/TugasAkhirIcha/dataSetTest"); 
		for (File file : testFile.listFiles()){
			if(file.isFile()){
				Document d = new Document(666, file.getPath());
				System.out.println(file.getName());
				for (int i = 0; i < d.getWords().size(); i++) {
					System.out.print(d.getWords().get(i));
				}
				System.out.println();
				System.out.println();
			}
		}
	}
	
	@Test
	public void testDokumen(){
		File testFile = new File("C:/Users/channisa/workspace/tugas-akhir-113100025/TugasAkhirIcha/dokSample");
		for (File file : testFile.listFiles()){
			if(file.isFile()){
				Document d = new Document(666, file.getPath());
				System.out.println(file.getName());
				for (int i = 0; i < d.getWords().size(); i++) {
					System.out.println(d.getWords().get(i));
				}
				System.out.println();
				System.out.println();
			}
		}
	}
}
